<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>编辑</title>
		<link rel="stylesheet" type="text/css" href="../../plugins/layui/css/layui.css" />
		<link href="../../kitAdmin/css/app.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="../../plugins/select2/dist/css/select2.min.css"/>
	</head>

	<body>
		<div class='kit-table'>
			<div style='margin:10px'>
				
		<form class='layui-form' action='' lay-filter='form-edit'>
			<input type='hidden' name='uniqueid'  data-link='{:uniqueid}' />
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>登录名</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:uname}' id='_uname' name='uname' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>password</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:password}' id='_password' name='password' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>真实名字</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:name}' id='_name' name='name' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>状态</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:state}' id='_state' name='state' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>所属角色</label>
					<div class='layui-input-inline'>
						<!--<input type='text' placeholder=''data-link='{:role}' id='_role' name='role' class='layui-input'>-->
					 	<input type="radio" data-link='{:role}' name="role" value="0" title="网站编辑">
					 	<input type="radio" data-link='{:role}' name="role" value="1" title="超级管理员">
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>Email</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:email}' id='_email' name='email' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>基本工资</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:baseSalary}' id='_baseSalary' name='baseSalary' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>工龄工资</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:workingSalary}' id='_workingSalary' name='workingSalary' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>社保个人承担</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:selfSocialFee}' id='_selfSocialFee' name='selfSocialFee' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>社保单位承担</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:companySocialFee}' id='_companySocialFee' name='companySocialFee' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>外教费用</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:foreignFee}' id='_foreignFee' name='foreignFee' class='layui-input'>
					</div>
				</div>
			</div>
		</form>
			</div>
		</div>
		<script src="../../common/js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../static/js/base.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../plugins/jsviews/jsviews.js" type="text/javascript"></script>
		<script src="../../plugins/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../plugins/select2/dist/js/select2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var uid = getQueryVariable('uniqueid');
			jQuery(document).ready(function() {
				bindFormData();
			});
			var callback_save=function(){
				return $('.layui-form').serialize();
			}
			function bindFormData(){
				if(uid){
					$.ajax({
						url:baseUrl+'/admins/'+uid,
						type:'get',
						success:function(data){
							$.link(true, ".kit-table", data.data);
							// $('select').select2().change();
							// layui.form.render();
						},
						error:function(){
							parent.layer.alert('系统或网络错误！');
						}
					});
				}
			}
			layui.use(['form', 'layedit', 'laydate'], function(){});
		</script>
	</body>

</html>
